package jass.iss.edu.Screen;

import java.awt.GridLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class JobAdvertiserHomeScreen  extends JFrame{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//Frame properties
	public JFrame app_Frame;
	public String app_FrameTitle;
	
	//Layout
	private GridLayout app_Layout;
	
	//Panel 
	private JPanel app_Panel;
	
	//Button
	private JButton app_ViewJobReponseList;
	private JButton app_ViewAdvertisementListButton;

	
	public JobAdvertiserHomeScreen(ActionListener pListener) {
		
		
		setSize(500,500);
		app_FrameTitle = "Advertiser Homepage";
		app_Frame = new JFrame(app_FrameTitle);
		
		//TO be removed for testing only
		app_Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		//Buttons
		app_ViewJobReponseList= new JButton("View Job Response List");
		app_ViewAdvertisementListButton = new JButton("Manage Job Advertisement");
		
		//Add listender to button
		app_ViewJobReponseList.addActionListener(pListener);
		app_ViewAdvertisementListButton.addActionListener(pListener);
		
		//Set Action command
		app_ViewJobReponseList.setActionCommand("ViewJobReponseList");
		app_ViewAdvertisementListButton.setActionCommand("ViewAdvertisementList");
		
		app_Layout = new GridLayout(5,0);
		app_Panel = new JPanel(app_Layout);

		app_Panel.add(app_ViewJobReponseList);
		app_Panel.add(app_ViewAdvertisementListButton);
		
		app_Frame.getContentPane().add(app_Panel);		
		app_Frame.pack();
		app_Frame.setVisible(true);
		
	}
	


}
